package com.ssn.decorator.clothes;

public class Client {
    public static void main(String[] args) {
        Human human = new HumanWang();
        human = new Shirt(human);
        human = new Jacket(human);
        human.wear();
        // 或者像这样 这个嵌套关系可能更清晰
        Human other = new Jacket(new Shirt(new HumanWang()));
        //  ware其实可以理解为 让之前装饰的东西生效
        other.wear();
    }
}
